<?php namespace App\Http\Requests;

use App\Http\Requests\Request;

class InvestOrgRequest extends Request {

	/**
	 * Determine if the user is authorized to make this request.
	 *
	 * @return bool
	 */
	public function authorize()
	{
		return true;
	}

    public function attributes()
    {
        return [
            'invest_name'   =>  '投资机构名',
            'invest_money'  =>  '投资总额',
            'minquota'      =>  '最小投资金额',
            'maxquota'      =>  '最大投资金额',
            'web_link'      =>  '网站链接',
        ];
    }

	/**
	 * Get the validation rules that apply to the request.
	 *
	 * @return array
	 */
	public function rules()
	{
		return [
            'invest_name'   =>  'required',
            'invest_money'  =>  'numeric',
            'minquota'      =>  'numeric',
            'maxquota'      =>  'numeric',
            'web_link'      =>  'url',
		];
	}



}
